using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

namespace Efficient.Domain
{
    [Serializable]
    internal class EmptyPagingInfo : IPagingInfo
    {
        private bool countEveryTime;
        private int currentPage;
        private int pageSize;
        private long recordConut;

        public EmptyPagingInfo(int pagesize)
        {
            this.pageSize = pagesize;
        }

        public EmptyPagingInfo() : this(0)
        {
        }

        #region IPagingInfo Members

        public int PageSize
        {
            get { return pageSize; }
            set { pageSize = value; }
        }

        public int CurrentPage
        {
            get { return currentPage; }
            set { currentPage = value; }
        }

        public long RecordConut
        {
            get { return recordConut; }
            set { recordConut = value; }
        }

        public bool CountEveryTime
        {
            get { return countEveryTime; }
            set { countEveryTime = value; }
        }

        public bool DoCount
        {
            get { return false; }
        }

        public bool IsLegal
        {
            get { return true; }
        }


        public void SetCachedId<T>(List<T> list)
        {
        }

        public List<T> GetCachedId<T>()
        {
            return null;
        }

        #endregion
    }
}